#include <iostream>
#include <cstdio>
using namespace std;

int main()
{
	double f = 0;
	cin >> f;
	printf("%.5lf\n", 5 * (f - 32) / 9.0);
	return 0;
}
